package com.ofek.eventos.db.datatypes;

import java.io.Serializable;

import com.ofek.base.db.DataTypeClass;
@DataTypeClass
public class EventId implements Serializable {

	public EventId(final String uid_owner, final long eid) {
		this.uid_owner = uid_owner;
		this.eid = eid;
	}
	public String uid_owner;
	public long eid;
	@Override
	public boolean equals(final Object obj) {
		final boolean equals = super.equals(obj);
		if (equals) return true;
		if (!(obj instanceof EventId)) return false;
		final EventId other = (EventId)obj;
		return other.eid==eid && other.uid_owner.equals(uid_owner);

	}
	@Override
	public int hashCode() {
		return uid_owner.hashCode();
	}
}
